<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header"><?php echo __('Product Type') ?></h1>
        </div>
        <div class="col-lg-12">
            <?php
                    echo $this->Form->create('ProductType', array(
                        'inputDefaults' => array(
                            'div' => 'form-group',
                            'wrapInput' => false,
                            'class' => 'form-control',
                            'method' => 'post'
                        ),
                        'class' => 'well',
                        'enctype' => 'multipart/form-data'
                    ));
                    ?>
            <ul id="myTab" class="nav nav-tabs">
                <li class="active"><a href="#home" data-toggle="tab"><?php echo __('general') ?></a></li>
                <li class=""><a href="#profile" data-toggle="tab"><?php echo __('All property') ?></a></li>
            </ul>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade active in" id="home">
                    <p>
                    <fieldset>
                        <?php
                        echo $this->Form->input('ProductType.name', array(
                            'label' => __('Product type'),
                            'type' => 'text',
                            'required' => false
                        ));
                        ?>
                    </fieldset>
                </p>
                </div>
                <div class="tab-pane fade" id="profile">
                    <?php foreach($properties as $key =>$property):?>
                        <?php
                        echo $this->Form->input('ProductTypeProperty.'.$property['Property']['property_id'].".property", array(
                                'div' => 'checkbox',
                                'type' => 'checkbox',
                                'class' => false,
                                'label' => $property['property_language'][0]['name']
                        ));
                        /*echo $this->Form->input('ProductTypeProperty.'.$property['Property']['property_id'].".property", array(
                            'label' => $property['property_language'][0]['name'],
                            'type' => 'checkbox',
                            'required' => false
                        ));*/
                        ?>
                    <?php endforeach;?>
                </div>
            </div>
            <?php
                        echo $this->Form->submit('Submit', array(
                            'div' => 'form-group',
                            'class' => 'btn btn-default'
                        ));
                        ?>
            <?php echo $this->Form->end(); ?>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->
<script>
            
    $(document).ready(function(){
        
        
    });
</script>